package org.shellex.javame.utility;

public class Pair {
	public Object head;
	public Object tail;
	public Pair(Object head, Object tail) {
		this.head = head;
		this.tail = tail;
	}
	public String toString() {
		return new String( head + ", " + tail);
	}
	
	public int hashCode(){
		return this.toString().hashCode();
	}
	
	public boolean equals(Object other) {
		return this.hashCode() == other.hashCode();
	}
}
